import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

class Base{
    public int a;
    public int b;

    public void test1(){
        System.out.println("Base::test1()!");
    }
    public void test2(){
        System.out.println("Base::test2()!");
    }
}

public class Derived extends Base{
    public boolean a;
    public int c;
    public int d;

    public void test1(int a) {
        System.out.println("Base::test1()!" + a);
    }
    public void test2(){
        //a = true;//默认情况下 子类优先使用
        super.a = 12;
        b = 20;
        c = 30;
        d = 40;
        System.out.println(a + " " + b + " " + c + " " + d + " ");
    }

    public void test3(){
        test1();
        test1(10);
        test2();
    }

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.test3();
    }
}
